<?php


include '../../vendor/autoload.php';
var_dump(base64_decode('MQSmCtBBFtCJetaF-D0ZfnU19Rdn6Jip4VxagVqIsIFnAeB4-AR2ap61tqbVAphy'));
$api = new \Ken\Cos4\Cos4Api();

\Ken\Cos4\Cos4Stream::register();
//file_put_contents('cos4:///test2/test3.txt', 'hello3');
//unlink('cos4://test.txt');
//$api->put('/test.txt', '123');

\Ken\Wechat\WechatStream::register();
try{
//	$result = file_put_contents('wechat:///test/Cos4/no.jpg', 'empty data');
//	var_dump($result);
}catch (Exception $e) {

}


//$wechat = new \Ken\Wechat\WechatApi();
//$wechat->put(__DIR__.'/no.jpg');